//购物车的点击事件
function shopping_click() {
    var register =  document.getElementById("top2_a").getAttribute("name");
    alert(register);
    if (register.trim().length==0){
        window.location.href = "/MyXiaomiShop/login.jsp";
    }else {
        window.location.href = "/MyXiaomiShop/cart.jsp";
    }
}

//跳转到在线支付的页面
function online_payment() {
    window.location.href = "/MyXiaomiShop/payWeixin.jsp";
}

//跳转到我的订单
function View_Order() {
    window.location.href = "/MyXiaomiShop/orderList.jsp";
}